package dao

import "gorm.io/gorm"

type User struct {
	gorm.Model
	UserName   string `gorm:"type:varchar(30);not null;comment:'用户名'"`
	UserImage  string `gorm:"type:varchar(100);not null;comment:'用户头像'"`
	FenPeople  int    `gorm:"type:int(11);not null;comment:'粉丝数'"`
	Sign       string `gorm:"type:varchar(255);not null;comment:'个性签名'"`
	LikePeople int    `gorm:"type:int(11);not null;comment:'关注人数'"`
}
type Video struct {
	gorm.Model
	VideoName string `gorm:"type:varchar(30);not null;comment:'视频名称'"`
	Url       string `gorm:"type:varchar(255);not null;comment:'视频路径'"`
	UserId    int    `gorm:"type:int(11);not null;comment:'用户id'"`
	Location  string `gorm:"type:varchar(50);not null;comment:'位置'"`
	To        int8   `gorm:"type:tinyint;default:0;comment:'是否推荐:0-不推荐,1-推荐'"`
}
